package com.bzframework.core.auth.token;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;


@Getter
@Setter
@NoArgsConstructor
public class SimpleUserToken implements UserToken {

    private String userId;

    private String token;

    private String signInTime;

    private String type;

    private String lastRequestTime;

    public SimpleUserToken(String token, String userId, String signInTime) {
        this(token, userId, signInTime, TokenTypeEnum.local.name());
    }
    public SimpleUserToken(String token, String userId, String signInTime, String type) {
        this.token = token;
        this.userId = userId;
        this.signInTime = signInTime;
        this.type = type;
    }

}
